package com.czb.seckill.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: 陈正彬
 */
@Data
@TableName("seckill_user")
public class User implements Serializable {
    private static final long serialVersionUID =1L;

    //用户id，手机号码
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Long id;

    private String nickname;

    private String password;

    private String slat;

    private String head;//头像

    private Date registerDate;//注册时间

    private Date lastLoginDate;//最后一次登入时间

    private Integer loginCount;//登入次数
}
